package model

import (
	"time"
)

//type BaiduFilePaths interface {
//	BaiduNetdiskModel() Category
//}

type Category struct {
	ID          int       `gorm:"primaryKey;column:id;AutoIncrement;type:int(11);"`
	CreateAt    time.Time `gorm:"autoCreateTime;type:datetime"`
	UpdatedAt   time.Time `gorm:"autoUpdateTime;type:datetime"`
	PublishId   int32     `lable:"发布人id" gorm:"type:int(10);not null"`
	Name        string    `lable:"分类名称" gorm:"type:varchar(100);not null"`
	IsShow      int8      `lable:"展示状态" gorm:"type:tinyint(1);not null"`
	ParentId    int32     `lable:"父级id" gorm:"type:int(10);not null"`
	Sort        int32     `lable:"排序 数字从大到小" gorm:"type:int(10);not null"`
	SeoKeyWords string    `lable:"swo关键词" gorm:"type:varchar(100);not null"`
	SeoTitle    string    `lable:"seo标题" gorm:"type:varchar(100);not null"`
	SeoTips     string    `lable:"seo描述" gorm:"type:varchar(195);not null"`
	//BaiduFilePaths BaiduFilePath `gorm:"foreignKey:ID;references:category_id"`
	//BaiduFilePaths BaiduFilePath `gorm:"foreignKey:category_id"`
}

//type BaiduFilePath struct {
//	BaiduFilePaths BaiduNetdiskModel.BaiduFilePath `gorm:"foreignKey:category_id"`
//}
//
//type Categorys interface {
//	Category
//	BaiduFilePath
//	//Categroy     CategoryModel.Category `gorm:"foreignKey:id;ASSOCIATION_FOREIGNKEY:category_id"`
//}

//type CategoryModel struct {
//	BaiduFilePath CategoryModels
//	//BaiduFilePath
//}

//增

//改

//查

//查询某个父级id的子类

//查询分类下面所有的百度文件夹
